PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


ThemeTabTitleDrawUPP

The Appearance Manager defines the type for an application-defined tab title drawing function as follows:

typedef pascal (void, ThemeTabTitleDrawProcPtr) (
                     const Rect *bounds,
                     ThemeTabStyle style,
                     ThemeTabDirection direction,
                     SInt16 depth,
                     Boolean isColorDev,
                     UInt32 userData);

The Appearance Manager defines the data type ThemeTabTitleDrawUPP to identify the universal procedure pointer for an application-defined tab title drawing function:

typedef ThemeTabTitleDrawProcPtr ThemeTabTitleDrawUPP;

You typically use the NewThemeTabTitleDrawProc macro like this:

ThemeTabTitleDrawUPP myThemeTabTitleDrawUPP;
myThemeTabTitleDrawUPP = NewThemeTabTitleDrawProc(MyThemeTabTitleDrawProc);

You typically use the CallThemeTabTitleDrawProc macro like this:

CallThemeTabTitleDrawProc(myThemeTabTitleDrawUPP, bounds, style, direction,
depth, isColorDev, userData);

To implement your own tab title drawing function, see MyThemeTabTitleDrawProc . The ThemeTabTitleDrawProcPtr type is available with Appearance Manager 1.1 and later.


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)